package com.zlsy.springbootdemo.chainofresponsibility.mtdemo2.context;

import lombok.Data;

/**
 * @author zhouliang
 * @date 2021/1/23 15:11
 */
public class UserPortraitRuleContext extends RuleContext<UserPortrait> {

  private TakeawayUserPortraitBasicInfo basicInfo;

  private UserPortrait data;

  private Boolean valid;

  public Boolean getValid() {
    return valid;
  }

  public void setValid(Boolean valid) {
    this.valid = valid;
  }

  public UserPortrait getData() {
    return data;
  }

  public void setData(UserPortrait data) {
    this.data = data;
  }

  public TakeawayUserPortraitBasicInfo getBasicInfo() {
    return basicInfo;
  }

  public void setBasicInfo(TakeawayUserPortraitBasicInfo basicInfo) {
    this.basicInfo = basicInfo;
  }

  @Data
  public static class TakeawayUserPortraitBasicInfo {
    private boolean serviceFail;
    private String userGroup;
  }
}
